import Vue from 'vue'
import App from './App.vue'
import router from './router/'
import store from './store/'
import TypeNav from '@/components/TypeNav/'
import vueLazyload from 'vue-lazyload'
import atm from '@/assets/images/1.gif'
import { MessageBox } from 'element-ui';
//引入mock 数据
import './mock/index'
import 'swiper/css/swiper.min.css'
//懒加载
Vue.use(vueLazyload,{
  loading:atm //设置懒加载图片
})

Vue.config.productionTip = false
Vue.prototype.$msgbox = MessageBox;
Vue.prototype.$alert = MessageBox.alert;
import './utils/'
import './plugins/'
//注册全局组件
Vue.component(TypeNav.name,TypeNav)
new Vue({
  render: h => h(App),
  router,
  store,
  beforeCreate(){
    Vue.prototype.$bus=this //全局事件总线
  }
}).$mount('#app')
